package com.buchong.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buchong.mapper.UserMapper;
import com.buchong.pojo.User;
import com.buchong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class UserImpl extends ServiceImpl<UserMapper,User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findOne(Integer id) {
        return userMapper.selectById(id);
    }
}
